// order 商品
var mongoose = require('mongoose');

const orderSchema = new mongoose.Schema({
    // comment:[{
    //     type: mongoose.Schema.Types.ObjectId,
    //     ref: "comment"
    // }]
    // goods:
    // number:Number,//数量,
    userName: String,//账号
    phone: String,//电话号码
    petName: String,//昵称
    address: [String],//送货地址
    orderNumber: String,//订单号
    buyTime: String,//购买时间
    buyService: String,//购买服务
    shops: [],//商品
    shopNumber: String//商品数量

});

mongoose.model("order", orderSchema, "order");